<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // class 是一个类的语法糖 作用相当于构造函数

        // function Game() {
        //     this.name = "lol"
        // }
            
        // console.log(Game.prototype);

            // class 类中的函数是直接挂载在原型上的
        class Game {
            constructor() {
                this.name = 'lol'
            }

            fn() {

            }
        }
        Game.prototype.fun = function() {

        }
        var game = new Game()

        console.log(Game.prototype);

    </script>
</body>
</html>